package com.design.structure.bridge.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.structure.bridge.cainiao
 * @ClassName: Circle
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/9/2 0002 23:49
 */
// 步骤 4
public class Circle extends Shape {
    private int x, y, radius;

    public Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    public void draw() {
        drawAPI.drawCircle(radius,x,y);
    }
}